/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.trandio.dao;

import java.sql.SQLException;
import java.util.List;
import javax.naming.NamingException;
import org.trandio.model.EntidadVO;


/**
 *
 * @author root
 */
public interface EntidadInterface {    
      public List<EntidadVO> consultarEntidad(String codigo,String descripcion, int firstRow, int rowsPerPage, String sortField, boolean sortAscending) throws SQLException, NamingException;
      public int count() throws SQLException, NamingException;
      public EntidadVO getEntidad(int id) throws SQLException, NamingException;
      public int guardarEntidad(EntidadVO entidadVO) throws SQLException, NamingException;
      public void guardarEntidadEdit(EntidadVO entidadVO) throws SQLException, NamingException;
      public List<EntidadVO> consultarEntidad() throws SQLException, NamingException;
      public List<EntidadVO> consultarEntidad(String codigo, String descripcion) throws SQLException, NamingException;

    public int getCantEntidades(String $sWhere) throws SQLException, NamingException;

    public List<EntidadVO> getEntidades(int displayStart, int displayLength, String $sWhere, String orden) throws SQLException, NamingException;
      
}